import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import EpmsElement, { setupI18n } from '../src/index'

import{zhCN,en} from './locales/index'

// 开发环境直接使用源码
const app = createApp(App)


// 先初始化国际化，再安装组件库 
setupI18n(app, { 
    locale: 'zh-CN',
    messages: {
      'zh-CN':zhCN,
      'en': en
    }
})
app.use(ElementPlus).use(EpmsElement).use(router).mount('#app') 